// PlaneDlg.cpp : implementation file
//

#include "stdafx.h"
#include "test.h"
#include "PlaneDlg.h"
#include "CubeFilter.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CPlaneDlg dialog


CPlaneDlg::CPlaneDlg(Mesh3D * mesh,CWnd* pParent /*=NULL*/)
	: CDialog(CPlaneDlg::IDD, pParent),malla(mesh)
{
	//{{AFX_DATA_INIT(CPlaneDlg)
	m_fine = 1;
	//}}AFX_DATA_INIT
}


void CPlaneDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CPlaneDlg)
	DDX_Text(pDX, IDC_FINE, m_fine);
	DDV_MinMaxInt(pDX, m_fine, 1, 100);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CPlaneDlg, CDialog)
	//{{AFX_MSG_MAP(CPlaneDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPlaneDlg message handlers

void CPlaneDlg::OnOK() 
{
	PlaneFilter filter;	
	UpdateData();
	filter(malla,m_fine);
	CDialog::OnOK();
}
